package com.boyinet.demo.pipelineleakage.repository.primary;

import com.boyinet.demo.pipelineleakage.bean.primary.SchedulerJob;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.CrudRepository;

import java.util.List;

public interface SchedulerJobRepository extends CrudRepository<SchedulerJob, Long>, JpaSpecificationExecutor<SchedulerJob> {


    SchedulerJob findSchedulerJobByJobGroupAndJobName(String group, String name);

    List<SchedulerJob> findSchedulerJobByStatusEquals(String on);

    SchedulerJob findSchedulerJobByPipeLineIdEquals(Long pipelineId);
}
